package org.graduates.webapp.actions.course;

import org.graduates.webapp.actions.BaseAction;
import org.projects.graduates.domain.TimeTable;

import com.opensymphony.xwork2.ActionSupport;


/**
 * 布置作业的内容
 * @author Administrator
 *
 */
public class FillInContentAction extends BaseAction {

	private static final long serialVersionUID = 3986421058140957794L;

	private long timeTableId = 0L;

	private TimeTable timeTable;

	public String execute() {

		if (timeTableId == 0L) {
			return ActionSupport.INPUT;
		}

		timeTable = TimeTable.get(TimeTable.class, timeTableId);

		if (null == timeTable) {
			return ActionSupport.INPUT;
		}

		return ActionSupport.SUCCESS;
	}

	public long getTimeTableId() {
		return timeTableId;
	}

	public void setTimeTableId(long timeTableId) {
		this.timeTableId = timeTableId;
	}

	public TimeTable getTimeTable() {
		return timeTable;
	}

	public void setTimeTable(TimeTable timeTable) {
		this.timeTable = timeTable;
	}

}
